import { http } from '@/utils/http';

export interface ILoginQuery {
  username: string;
  password: string;
}

export const loginApi = (data: ILoginQuery) => {
  return http<string>({
    url: '/mock/login',
    method: 'post',
    data,
  });
};
